Visual Basic (Declaration) | |
---|---|
Overloads Function FindInDataSourceAsync( _ ByVal predicate As Expression(Of Func(Of T,Boolean)), _ Optional ByVal orderBy As Func(Of IQueryable(Of T),IOrderedQueryable(Of T)), _ Optional ByVal fetchOptions As Action(Of IFetchOptions(Of T)) _ ) As Task(Of IEnumerable(Of T)) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As IRepository(Of T) Dim predicate As Expression(Of Func(Of T,Boolean)) Dim orderBy As Func(Of IQueryable(Of T),IOrderedQueryable(Of T)) Dim fetchOptions As Action(Of IFetchOptions(Of T)) Dim value As Task(Of IEnumerable(Of T)) value = instance.FindInDataSourceAsync(predicate, orderBy, fetchOptions) |
C# | |
---|---|
Task<IEnumerable<T>> FindInDataSourceAsync( Expression<Func<T,bool>> predicate, Func<IQueryable<T>,IOrderedQueryable<T>> orderBy, Action<IFetchOptions<T>> fetchOptions ) |
C++/CLI | |
---|---|
Task<IEnumerable<T^>^>^ FindInDataSourceAsync( Expression<Func<T^,bool>^>^ predicate, Func<IQueryable<T^>^,IOrderedQueryable<T^>^>^ orderBy, Action<IFetchOptions<T^>^>^ fetchOptions ) |
Parameters
- predicate
- Optional predicate to filter the returned list of entities
- orderBy
- Optional sorting function to sort the returned list of entities.
- fetchOptions
- Optional delegate to specify additional fetching options.
Return Value
The list of retrieved entities.Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family